package com.sunlands.deskmate.service;

import com.sunlands.deskmate.dto.RequestDTO;
import com.sunlands.deskmate.entity.TzChatRecord;
import com.sunlands.deskmate.vo.TzChatRecordVO;
import java.util.List;

/**
 * @author lishuai
 *
 */
public interface MessageService {
    
    /**
     * 发消息
     * 
     * @param message
     * @return
     */
    String sendMessage(TzChatRecord message);


    List<TzChatRecordVO> findUnreadRecord(RequestDTO requestDTO);

    int saveChatRecord(TzChatRecord record);

    List<TzChatRecord> selectRecentChatRecord(String userId);
}
